<div class="row">
	<div class="col-md-12">
		<a class="btn btn-success btn-sm" role="button" data-toggle="collapse" href="#filter" aria-expanded="false" aria-controls="filter" style="margin-bottom: 10px;">
			筛选
			<i class="icon-double-angle-down icon-large"></i>
		</a>
		<div class="collapse" id="filter">
			<div class="row">
				<form class="filter-form" action="${request.contextPath}/bid-list/done" method="post">
					<div class="col-md-3">
						<div class="form-group">
							<div class="input-group">
								<div class="input-group-addon">
									<div style="width: 60px;">项目名称</div>
								</div>
								<input type="text" class="form-control input-sm" name="name" value="${search.name}" />
							</div>
						</div>
					</div>
					<div class="col-md-3">
						<div class="form-group">
							<div class="input-group">
								<div class="input-group-addon">
									<div style="width: 60px;">招标方式</div>
								</div>
								<select class="form-control input-sm" name="bidWay">
									<option value=""></option>
									<#if bidWays??> <#list bidWays as bws>
									<option value="${bws}">${bws}</option>
									</#list> </#if>
								</select>
							</div>
						</div>
					</div>
					<div class="col-md-3">
						<div class="form-group">
							<div class="input-group">
								<div class="input-group-addon">
									<div style="width: 60px;">招标单位</div>
								</div>
								<select class="form-control input-sm" name="biddingerInfo.biddinger.id">
									<option value="null"></option>
									<#if biddingers??> <#list biddingers as bs>
									<option value="${bs.id}">${bs.company}</option>
									</#list> </#if>
								</select>
							</div>
						</div>
					</div>
					<div class="col-md-3">
						<div class="form-group">
							<div class="input-group">
								<div class="input-group-addon">
									<div style="width: 60px;">代理机构</div>
								</div>
								<select class="form-control input-sm" name="bidAgencyInfo.agency.id">
									<option value="null"></option>
									<#if agency??> <#list agency as a>
									<option value="${a.id}">${a.company}</option>
									</#list> </#if>
								</select>
							</div>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<div class="input-group">
								<div class="input-group-addon">
									<div style="width: 60px;">开标时间</div>
								</div>
								<input type="text" class="form-control input-sm datetimepicker" name="openingTimeStart" data-format="yyyy-MM-dd HH:mm" data-time="${(search.openingTimeStart?string('yyyy-MM-dd HH:mm'))!''}" readonly="readonly" />
								<div class="input-group-addon" style="border-width: 1px 0;">
									<div>至</div>
								</div>
								<input type="text" class="form-control input-sm datetimepicker" name="openingTimeEnd" data-format="yyyy-MM-dd HH:mm" data-time="${(search.openingTimeEnd?string('yyyy-MM-dd HH:mm'))!''}" readonly="readonly" />
							</div>
						</div>
					</div>
					<div class="col-md-3">
						<div class="form-group">
							<div class="input-group">
								<div class="input-group-addon">
									<div style="width: 60px;">投标结果</div>
								</div>
								<select class="form-control input-sm" name="status">
									<option value=""></option>
									<option value="B0003_WIN">中标</option>
									<option value="B0001_IN_BIDDING">投标中</option>
									<option value="B0002_MISS_REBID">流标重投</option>
									<option value="B0004_LOSE">未中标</option>
								</select>
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="btn btn-danger btn-sm filter-search">查询</div>
						<div class="btn btn-default btn-sm filter-reset">重置</div>
					</div>
					<div class="col-md-12">&nbsp;</div>
				</form>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	$(function() {
		$('select[name="bidWay"] option[value="${search.bidWay}"]').prop('selected', true);
		$('select[name="biddingerInfo.biddinger.id"] option[value="${search.biddingerInfo.biddinger.id}"]').prop('selected', true);
		$('select[name="bidAgencyInfo.agency.id"] option[value="${search.bidAgencyInfo.agency.id}"]').prop('selected', true);
		$('select[name="status"] option[value="${search.status}"]').prop('selected', true);
	});
</script>